﻿package com.lebo.portal.util;

public enum MessageConst {
    LOGIN_FAILED(10000,"登录失败"),
    LOGIN_UNKOWN_USERNAME(10001,"用户名不存在"),
    LOGIN_WRONG_PASSWORD(10002,"密码错误"),
    LOGIN_FROZEN(10003,"账户被冻结"),
    LOGIN_WRONG_DOMAIN(10004,"无效的域名"),
    ACCESS_ERROR(20001,"权限不够"),
    PWD_UPDATE_ERROR(21500,"修改用户密码错误"),

    USER_CREATE_WRONG(30000,"创建用户失败"),
    USER_NAME_DUP(30001,"用户名已存在"),

    DEPOSIT_ERROR(600000,"充值异常"),
    DEPOSIT_PAY_PENDING(600001,"充值订单待支付"),
    DEPOSIT_PAY_DONE(600001,"充值订单已完成"),
    DEPOSIT_PAY_CANCEL(600001,"充值订单已取消");

    private int code;
    private String msg;

    private MessageConst(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
